package component.fulltextsearch.entity;

import javax.servlet.http.HttpServletRequest;

/**
 * 获取用户信息的接口
 *
 */
public interface IUserInfo {
	/**
	 * 取得当前用户的ID.
	 * @param request
	 * @return
	 */
	public String getCurUserId(HttpServletRequest request);
	
	/**
	 * 取得当前用户所拥有的角色ID的数组
	 * @param request
	 * @return
	 */
	public String[] getCurUserRoles(HttpServletRequest request);
}
